import { DataProvider } from "../../../../../fl/data/DataProvider";
import { ObjCreate } from "../../common/ObjCreate";
import { TilePanel } from "../../equipment/TilePanel";
import { AchievementMinorCellRender } from "../item/AchievementMinorCellRender";
//class AchievementCategorySubWin
    
    export  class AchievementCategorySubWin /* flash.display.Sprite */
    {
        constructor()
        {
            
            this.initView();
            return;
        }

        public set dataProvider(arg1: DataProvider)
        {
            this._categoryList.dataProvider = arg1;
            this._categoryList.verticalScrollPosition = 0;
            this._categoryList.drawNow();
            return;
        }

        /* internal  */initView(): void
        {
            ObjCreate.createBg(0, 64, 722, 414, this);
            this._categoryList = new TilePanel();
            this._categoryList.x = 122;
            this._categoryList.y = 66;
            this._categoryList.setSize(595, 407);
            this._categoryList.rowHeight = 60;
            this._categoryList.columnWidth = 588;
            this._categoryList.setStyle("cellRenderer", AchievementMinorCellRender);
            this.addChild(this._categoryList);
            return;
        }

        /* internal */ /* var */_categoryList: TilePanel;

        /* internal */ /* var */_categoryBg: Object /* flash.display.Bitmap */;
    }
